package com.ghd.dataviz.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ghd.dataviz.core.param.PageInfo;
import com.ghd.dataviz.entity.User;
import com.ghd.dataviz.param.UserPageParam;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author guohd
 * @since 2020-03-15
 */
public interface IUserService extends IService<User> {
    User findByName(String name);

    @Transactional
    User addUser(User user);

    PageInfo<User> findUserPageList(UserPageParam pageParam);
}
